<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div>hello div</div>
    <p>hello p</p>
    <span>hello span</span>
    <script>
      // 创建一个 div 元素对象
      const div = document.createElement("div");
      const p = document.createElement("p");
      const span = document.createElement("span");

      const text = document.createTextNode("hello text");

      console.log(div);
      console.log(p);
      console.log(span);
      console.log(text);
    </script>
  </body>
</html>
